package com.cpr.ams.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

/**
 * Room
 * @author 
 */
@ApiModel(value="com.cpr.ams.bean.Room")
public class Room implements Serializable {
    /**
     * 房间编号
     */
    @ApiModelProperty(value="房间编号")
    private Integer roomId;

    /**
     * 房间状态
     */
    @ApiModelProperty(value="房间状态")
    private String status;

    /**
     * 房间照片
     */
    @ApiModelProperty(value="房间照片")
    private String roomImg;

    /**
     * 房间类型
     */
    @ApiModelProperty(value="房间类型")
    private Integer type;

    /**
     * 备用字段1
     */
    @ApiModelProperty(value="备用字段1")
    private String backup1;

    /**
     * 备用字段2
     */
    @ApiModelProperty(value="备用字段2")
    private String backup2;

    private static final long serialVersionUID = 1L;

    public Integer getRoomId() {
        return roomId;
    }

    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getRoomImg() {
        return roomImg;
    }

    public void setRoomImg(String roomImg) {
        this.roomImg = roomImg;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getBackup1() {
        return backup1;
    }

    public void setBackup1(String backup1) {
        this.backup1 = backup1;
    }

    public String getBackup2() {
        return backup2;
    }

    public void setBackup2(String backup2) {
        this.backup2 = backup2;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Room other = (Room) that;
        return (this.getRoomId() == null ? other.getRoomId() == null : this.getRoomId().equals(other.getRoomId()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getRoomImg() == null ? other.getRoomImg() == null : this.getRoomImg().equals(other.getRoomImg()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getBackup1() == null ? other.getBackup1() == null : this.getBackup1().equals(other.getBackup1()))
            && (this.getBackup2() == null ? other.getBackup2() == null : this.getBackup2().equals(other.getBackup2()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRoomId() == null) ? 0 : getRoomId().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getRoomImg() == null) ? 0 : getRoomImg().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getBackup1() == null) ? 0 : getBackup1().hashCode());
        result = prime * result + ((getBackup2() == null) ? 0 : getBackup2().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", roomId=").append(roomId);
        sb.append(", status=").append(status);
        sb.append(", roomImg=").append(roomImg);
        sb.append(", type=").append(type);
        sb.append(", backup1=").append(backup1);
        sb.append(", backup2=").append(backup2);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}